package com.asiainfo.dacp.datastash.broker.core.enums;

import com.asiainfo.dacp.util.enums.AbstractEnum;
import com.asiainfo.dacp.util.enums.Enums;
import lombok.NoArgsConstructor;

/**
 *
 *
 * @author MeiKefu
 * @date 2017-12-19
 */
@Enums("datastash:unit:taskState")
@NoArgsConstructor
public class UnitTaskStateEnum extends AbstractEnum {

    public static UnitTaskStateEnum
    /*
        Initialization = new UnitTaskStateEnum("0","新建"),
        Failed = new UnitTaskStateEnum("-1","失败"),
        Success = new UnitTaskStateEnum("1","成功"),
        Processing = new UnitTaskStateEnum("2","处理"),
        Waiting = new UnitTaskStateEnum("3","等待");
        */

		INIT = new UnitTaskStateEnum("1","新建"),
		RUNNABLE =  new UnitTaskStateEnum("2","等待运行"),
		RUNNING =  new UnitTaskStateEnum("3","正在运行"),
		BLOCKED_RESOURCE = new UnitTaskStateEnum("4","资源阻塞"),
		BLOCKED_RELAY = new UnitTaskStateEnum("5","依赖阻塞"), 
		SUCESS = new UnitTaskStateEnum("6","成功"),
		FAIL =  new UnitTaskStateEnum("-1","失败");
    
    

    private UnitTaskStateEnum(String value,String label){
        super(value,label);
    }

}
